package com.symbio.ishenapi.order.controller;

import com.symbio.ishenapi.common.controller.BaseController;
import com.symbio.ishenapi.order.model.TmPrescriptionOrder;
import com.symbio.ishenapi.order.model.TmServiceOrder;
import io.jboot.web.controller.annotation.RequestMapping;

/**
 * @ClassName TmPrescriptionController
 * @Description 处方管理Controller
 * @Author GuoShunYou
 * @Date 2018/10/22 0022 下午 4:15
 **/
@RequestMapping("/TmPrescriptionController")
public class TmPrescriptionController extends BaseController {

    /**
     *
     *
     * @Author GuoShunYou
     * @Description 添加处方订单信息
     * @date 下午 4:21   2018/10/22
     * @return void
     */
    public void addPrescriptionOrder(){
        TmPrescriptionOrder preOrder = (TmPrescriptionOrder) getReqBodyObject(TmPrescriptionOrder.class);
        boolean b=preOrder.save();
        if(b){
            renderJsonRet(preOrder.getId());
        }
    }
}
